package at.chl.lution;

import at.chl.genetic.function.request.IGeneticFunctionRequest;
import at.chl.genetic.function.result.IGeneticFunctionResult;
import at.chl.genetic.node.IDecisionNode;

public class BasicLutionist implements ILutionist{

	private IDecisionNode rootNode;
	private Long id;
	private String name;
	
	@Override
	public IGeneticFunctionResult evaluate(IGeneticFunctionRequest request) {
		return rootNode.evaluate(request);
	}

	public IDecisionNode getDecisionRootNode() {
		return rootNode;
	}

	public void setDecisionRootNode(IDecisionNode rootNode) {
		this.rootNode = rootNode;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	

}
